<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class FishPond extends Model
{
    //
    //此模型关联的数据表
    protected $table = 'sad_question';

    //    表的主键
    public $primaryKey = 'id';
    //不更新created_at  updated_at字段
    public $timestamps = false;
    public $guarded = [];

    public function type()
    {
    	 return $this->belongsTo('App\Http\Model\Type','tid','id');
    }

    public function user()
    {
    	 return $this->belongsTo('App\Http\Model\Home_user','uid','id');
    }
}
